#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main() 
{
    int a, b, c, n = 1, z = 100;
    for (a = 1; a < 20; a++) 
    {
        if (n > z)
        {
            break;
        }
        else
        {
            for (b = 1; b < 33; b++)
            {
                c = 100 - a - b;
                if (5 * a + 3 * b + c / 3.0 == 100) 
                {
                    printf("%5d%5d%5d\n", a, b, c);
                    n++;
                }
            }
        }
    }
    return 0;
}